<?php
   define('KYOMINI_GO',true);
   require_once('admin_conn.php');
?>
<!DOCTYPE html>
<!--[if lt IE 9]><script>window.location.href="../error/index.html"</script><![endif]-->
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>Admin</title>
    <script type="text/javascript" src="<?php echo $JS ?>jquery.min.js"></script>
    <link href="<?php echo $CSS ?>login.css" rel="stylesheet" type="text/css">
</head>

    <body>
<div id="container">
        <div id="main" role="main">
            <section id="intro">
              <h1>KyoMini PHP</h1>
              <p>我的后台</p>
            </section>
            <hr>
            <section id="same-network">
               <form  method="get" action="Admin_manage.php?=login">
                  <label for="textfield">帐 号:</label>
                  <input type="text" name="username">
                  <label for="textfield">密 码:</label>
                  <input type="password" name="password">
                  <input type="submit" name="submit" id="submit" value="登陆">
                  <input type="reset" name="reset" id="reset" value="重写">
                </form>
            </section>
      </div>
</div>
	<script>
	$(document).ready(function() {
		$("form").submit(function(){
			if($("input[name='username']").val() == ""){
			 alert("用户名不能为空");
			 return false;
			 }
			 if($("input[name='password']").val() == ""){
			 alert("密码不能为空");
			 return false;
			 }
		 });
    });
    </script>
</body>
</html>